package com.itheima.demo03;

public class Frog extends Animal{


    public Frog() {
    }

    public Frog(String name, int age) {
        super(name, age);
    }

    public void drinkWater(){
        System.out.println("喝水");
    }

    @Override
    public void eat() { //重新抽象类的抽象方法
        System.out.println("青蛙吃虫子");
    }
}
